import Vue from "vue";
import VueRouter from "vue-router";
import home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [{
    path: "/",
    name: "home",
    component: home,
},
{
    path: "/search",
    name: "search",
    component: () =>
        import("../views/search.vue"),
},
{
    path: "/Cart",
    name: "cart",
    component: () => import("../views/Cart.vue")
}
];

const router = new VueRouter({
    routes,
});

export default router;